//
//  CourseVideoView.h
//  xpkc
//
//  Created by TopSageOSX on 14-8-25.
//  Copyright (c) 2014年 wanmeizty. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "CourseVideoViewMenuMini.h"
#import "CourseVideoViewMenuFull.h"
#import "CourseVideoViewList.h"
#import "CourseVideoViewQuest.h"
#import "UIView+Frame.h"
#import "CourseListAskCell.h"
@protocol CourseVideoViewDelegate <NSObject>

- (void)backToCourseVC;
- (void)downBtnClick:(UIButton *)btn;
- (void)closeDownBtnClick:(UIButton *)btn;
- (void)downChooseAll:(UIButton *)btn;
- (void)downStartDownload:(UIButton *)btn;
- (void)askQuestion:(NSString *)question;

- (void)playerPause;
- (void)playerPlay;
- (void)playerChangeToSection:(NSInteger)section andRow:(NSInteger)row;
- (void)playerSetProgress:(CGFloat)progress;
- (void)playerSetRate:(CGFloat)rate;
- (void)playerSetQuality:(NSInteger)quality;
@end




@interface CourseVideoView : UIView<MenuFullDelegate,UITextFieldDelegate>
@property (nonatomic, strong)UIView *playerView;
@property (nonatomic, strong)CourseVideoViewMenuMini *menuMini;
@property (nonatomic, strong)CourseVideoViewMenuFull *menuFull;
@property (nonatomic, strong)CourseVideoViewList *listView;
@property (nonatomic, strong)CourseVideoViewQuest *questView;
@property (nonatomic, strong)UILabel *noteLabel;

@property (nonatomic, strong)UITableView *listTab;
@property (nonatomic, strong)UITableView *questTab;
@property (nonatomic, strong)UITextField *askFiled;
@property (nonatomic, strong)UIButton *askBtn;
@property (nonatomic, assign)BOOL isPlay;

@property (nonatomic, assign)id<CourseVideoViewDelegate> delegate;

@property (nonatomic, strong) NSDictionary * playUrls;
@property (nonatomic ,strong) NSDictionary * currentPlayUrl;


- (void)setProgressValue:(CGFloat)progress;

@end
